import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/patrol_scheme_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/patrol_scheme_entity.g.dart';

/// 巡检计划列表实体
@JsonSerializable()
class PatrolSchemeEntity {

	PatrolSchemeEntity();

	factory PatrolSchemeEntity.fromJson(Map<String, dynamic> json) => $PatrolSchemeEntityFromJson(json);
	int? allowCrossInspection = 0;
	String? companyCode = '';
	int? completionRate = 0;
	String? createBy = '';
	String? createById = '';
	String? createDate = '';
	String? deleted = '';
	int? doesItExist = 0;
	String? enableOrNot = '';
	String? endTime = '';
	String? id = '';
	String? inspectionDepartment = '';
	String? inspectionPersonnel = '';
	String? inspectionPersonnelName = '';
	String? inspectionType = '';
	String? inspectionTypeName = '';
	int? lateNum = 0;
	String? locateMode = '';
	int? numberOfHiddenHazardsNum = 0;
	int? numberOfPoints = 0;
	String? planName = '';
	String? plannedEndTime = '';
	int? reExaminationNum = 0;
	String? scheduledStartTime = '';
	int? taskGrade = 0;
	List<dynamic>? taskIds = [];
	int? taskNum = 0;
	int? taskStatus = 0;
	List<dynamic>? tasks = [];
	int? theNumberOfTasksToBeCompleted = 0;
	List<dynamic>? unitPlans = [];
	String? updateBy = '';
	String? updateById = '';
	String? updateDate = '';
	String? workDayType = '';

	Map<String, dynamic> toJson() => $PatrolSchemeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
